﻿using CefSharp;
using KeZhou.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace KeZhou.Views.Components.Controls
{
    /// <summary>
    /// MainFourWishToGo.xaml 的交互逻辑
    /// </summary>
    public partial class MainFourWishToGo : Page
    {
        private static MainFourWishToGo instance;
        public static MainFourWishToGo Instance
        {
            get
            {
                return instance ?? (instance = new MainFourWishToGo());
            }
        }
        public MainFourWishToGo()
        {
            InitializeComponent();
            instance = this;

            Browser.Address = "http://101.35.231.245:1003/#/FourPage";
            /*Browser.Address = "http://localhost:1003/#/FourPage";*/
            Browser.JavascriptObjectRepository.Settings.LegacyBindingEnabled = true;
            Browser.JavascriptObjectRepository.NameConverter = null;

            Browser.JavascriptObjectRepository.Register("bound", TargetManageViewModel.Instance , options: BindingOptions.DefaultBinder);
            
        }

    }
}
